from django.conf.urls import patterns, include, url
from django.contrib import admin
import aboutme.views

admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'aboutme.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', aboutme.views.root),
    url(r'^(?P<page_lang>[A-Za-z]*)/$', aboutme.views.root),
    url(r'^resume/(?P<page_lang>[A-Za-z]*)/$', aboutme.views.resume),
    url(r'^contactme/(?P<page_lang>[A-Za-z]*)/$', aboutme.views.contactme),
    url(r'^search/tags_and_categories/(?P<page_lang>[A-Za-z]*)/$', aboutme.views.tags_and_categories),
    url(r'^search/category/(?P<catname>.*)/(?P<page_lang>[A-Za-z]*)/$', aboutme.views.category),
    url(r'^search/tag/(?P<tagname>.*)/(?P<page_lang>[A-Za-z]*)/$', aboutme.views.tag),
    url(r'^search/category/(?P<page_lang>[A-Za-z]*)/$', aboutme.views.category),
    url(r'^search/tag/(?P<page_lang>[A-Za-z]*)/$', aboutme.views.tag),
    url(r'^feed/(?P<page_lang>.*)/$', aboutme.views.feed),
    url(r'^links/(?P<page_lang>.*)/$', aboutme.views.links),
)
'''
    url(r'^rus/$', aboutme.views.root),
    url(r'^eng/$', aboutme.views.root),
    url(r'^fr/$', aboutme.views.root),
    url(r'^resume/rus/$', aboutme.views.resume),
    url(r'^resume/eng/$', aboutme.views.resume),
    url(r'^resume/fr/$', aboutme.views.resume),
    url(r'^feed/rus/$', aboutme.views.feed),
    url(r'^feed/eng/$', aboutme.views.feed),
    url(r'^feed/fr/$', aboutme.views.feed),
    url(r'^links/rus/$', aboutme.views.links),
    url(r'^links/eng/$', aboutme.views.links),
    url(r'^links/fr/$', aboutme.views.links),
    url(r'^search/tags_and_categories/rus/$', aboutme.views.tags_and_categories),
    url(r'^search/tags_and_categories/eng/$', aboutme.views.tags_and_categories),
    url(r'^search/tags_and_categories/fr/$', aboutme.views.tags_and_categories),
    url(r'^search/category/(.*)/rus/$', aboutme.views.category),
    url(r'^search/category/(.*)/eng/$', aboutme.views.category),
    url(r'^search/category/(.*)/fr/$', aboutme.views.category),
    url(r'^search/tag/(.*)/rus/$', aboutme.views.tag),
    url(r'^search/tag/(.*)/eng/$', aboutme.views.tag),
    url(r'^search/tag/(.*)/fr/$', aboutme.views.tag),
    url(r'^search/category/rus/$', aboutme.views.category_search),
    url(r'^search/category/eng/$', aboutme.views.category_search),
    url(r'^search/category/fr/$', aboutme.views.category_search),
    url(r'^search/tag/rus/$', aboutme.views.tag_search),
    url(r'^search/tag/eng/$', aboutme.views.tag_search),
    url(r'^search/tag/fr/$', aboutme.views.tag_search),
'''